<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <script src="https://www.layuicdn.com/auto/layui.js" v="2.5.6" e="layui"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/layer/3.1.1/layer.js"></script>
    <link href="https://cdn.bootcdn.net/ajax/libs/layer/3.1.1/mobile/need/layer.css" rel="stylesheet">
    <script src="https://cdn.bootcdn.net/ajax/libs/layer/3.1.1/layer.js"></script>
    <link href="https://cdn.bootcdn.net/ajax/libs/layer/3.1.1/mobile/need/layer.css" rel="stylesheet">
    <link rel="stylesheet" href="static/css/style.css">
    <script src="https://cdn.bootcss.com/vue/2.5.10/vue.min.js"></script>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="static/js/jquerysession.js"></script>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <!--顶栏-->
    <div class="layui-header">
        <div class="layui-logo">会员首页</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->


        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img"><span id="uname"></span>
                </a>

            </li>
            <li class="layui-nav-item"><a href="/index.html">退出登录</a></li>
        </ul>
    </div>
    <!--<header>
        <div style="float: right">
            <i  class="layui-icon  layui-anim layui-anim-rotate layui-anim-loop" style="font-size: 30px; color: #969baa;">&#xe614;</i>&nbsp; &nbsp; &nbsp;
        </div>
    </header>-->

    <div class="main" id="bc">
        <!--左栏-->
        <div class="cai">
            <ul class="cl" >
                <!--顶级分类-->
                <li v-for="vo,index in menu" :class="{hidden:vo.hidden}">
                    <a href="javascript:;"  :class="{active:vo.active}"  @click="onActive(index)">
                        <i class="layui-icon" v-html="vo.icon"></i>
                        <span v-text="vo.name"></span>
                        <i class="layui-icon arrow" v-show="vo.url.length==0">&#xe61a;</i> <i v-show="vo.active" class="layui-icon active">&#xe623;</i>
                    </a>
                    <!--子级分类-->
                    <div v-for="vo2,index2 in vo.list">
                        <a href="javascript:;" :class="{active:vo2.active}" @click="onActive(index,index2)" v-text="vo2.name"></a>
                        <i v-show="vo2.active" class="layui-icon active">&#xe623;</i>
                    </div>
                </li>
            </ul>
        </div>
        <!--右侧-->
        <div class="right">

            <div class="layui-carousel" id="test1" lay-filter="test1" style="margin: 0 auto">
                <div carousel-item="">
                    <div><img src="static/images/3.jpg"></div>
                    <div><img src="static/images/4.jpeg"></div>
                    <div><img src="static/images/5.jpg"></div>
                    <div><img src="static/images/6.jpg"></div>
                    <div><img src="static/images/7.jpg"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['element','carousel','form'], function(){
        var element = layui.element;
        var carousel = layui.carousel
            ,form = layui.form;

        carousel.render({
            elem: '#test1'
            ,width: '1000px'
            ,height: '600px'
            ,interval: 3000
        });

        $(function(){
            var uname = $.session.get('uname')
            $("#uname").html(uname);
        })
    })

</script>

<script src="static/js/config.js"></script>
<script src="static/js/script.js"></script>
</body>
</html>